const Layout = () => import("../../layout/index.vue");
const User = () => import("../../views/user/index.vue");
const Activity = () => import("../../views/activity/index.vue");
const Shop = () => import("../../views/shop/index.vue");
const Swiper = () => import("../../views/swiper/index.vue");

const superRoutes = [
  {
    path: "/",
    component: Layout,
    children: [
      {
        path: "/activity",
        name: "activity",
        component: Activity,
        meta: {
          icon: "SmileOutlined",
          title: "活动管理",
        },
      },
      {
        path: "/user",
        name: "user",
        component: User,
        meta: {
          icon: "UserOutlined",
          title: "用户管理",
        },
      },
      {
        path: "/shop",
        name: "shop",
        component: Shop,
        meta: {
          title: "查看店铺",
          icon: "ShopOutlined",
        },
      },
      {
        path: "/swiper",
        name: "swiper",
        component: Swiper,
        meta: {
          title: "轮播图配置",
          icon: "PictureOutlined",
        },
      },
    ],
  },
];

export default superRoutes;
